Prediction For Image Urls
AutomatR.Nanonets.Activities.PredictionForImageUrls
The "Prediction For Image Urls" activity in AutomatR is part of the Nanonets Image Classification activities package, allowing users to predict the category of an image based on its URL. This activity supports multiple image URLs in a comma-separated format, making it versatile for image classification automation workflows.
Properties
Name | Description |
---|---|
Input | |
Model ID | Enter the Model ID associated with the Nanonets Image Classification model to be used for prediction. String variables containing the Nanonets Image Classification model ID. |
Image Url | Enter the image URLs in a comma-separated format. These URLs represent the images for which predictions will be made. String variables containing the image URLs. |
Misc | |
Display Name | Provides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variables containing the desired display name. |
Optional | |
Delay | Specifies the amount of time (in seconds) to wait before executing the "Prediction For Image Urls" activity. This can be useful for handling synchronization issues. Integer variables containing the delay duration. Ex.: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1. |
Output | |
Result | Outputs the predicted results in the form of a list of ImageURLProperties . Variables of type List<ImageURLProperties> to store the predicted results for each image URL. |
How to use:
- Drag and drop the "Prediction For Image Urls" activity onto the workflow.
- Configure the properties by specifying the Nanonets Image Classification model ID and the image URLs for prediction.
- Optionally, configure the delay.
- Execute the workflow to perform predictions on the specified image URLs using the Nanonets Image Classification model.
- Access the detailed predicted results from the output variable "Result" for further processing in the workflow.
Example: Consider an example where the "Prediction For Image Urls" activity is used to predict categories for two image URLs ("https://example.com/image1.jpg" and "https://example.com/image2.png") using the Nanonets Image Classification model with the ID "xyz123" and a delay of 2 seconds:
Prediction For Image Urls:
Display Name: "Image Classification Prediction"
Model ID: "xyz123"
Image Url: "https://example.com/image1.jpg,https://example.com/image2.png"
Delay: 2
Result: imageClassificationResults
In this example, the activity predicts categories for the specified image URLs using the Nanonets Image Classification model with the ID "xyz123". The detailed predicted results are stored in the variable "imageClassificationResults" for further handling in the workflow.